# -*- coding: UTF-8 -*-
import traceback
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, BigInteger, String, DateTime, Boolean


class ExaFileChunks(Base):
    __tablename__ = 'exa_file_chunks'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    exa_file_id = Column(BigInteger, doc='')
    file_chunk_number = Column(BigInteger, doc='')
    file_chunk_path = Column(String(191), doc='')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, doc='')
    deleted = Column(Boolean, default=0, doc='')
